package com.ruoyi.mapper;

import java.util.List;
import com.ruoyi.domain.Coach;

/**
 * 教练Mapper接口
 * 
 * @author ruoyi
 * @date 2025-03-14
 */
public interface CoachMapper 
{
    /**
     * 查询教练
     * 
     * @param coachId 教练主键
     * @return 教练
     */
    public Coach selectCoachByCoachId(Long coachId);

    /**
     * 查询教练列表
     * 
     * @param coach 教练
     * @return 教练集合
     */
    public List<Coach> selectCoachList(Coach coach);

    /**
     * 新增教练
     * 
     * @param coach 教练
     * @return 结果
     */
    public int insertCoach(Coach coach);

    /**
     * 修改教练
     * 
     * @param coach 教练
     * @return 结果
     */
    public int updateCoach(Coach coach);

    /**
     * 删除教练
     * 
     * @param coachId 教练主键
     * @return 结果
     */
    public int deleteCoachByCoachId(Long coachId);

    /**
     * 批量删除教练
     * 
     * @param coachIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCoachByCoachIds(Long[] coachIds);

    Coach selectCoachByUserName(String userName);

    List<Coach> findCoachforCid(Long courseId);
}
